package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.MallGoods;
import com.appkubes.mall.core.po.MallGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface MallGoodsMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSqlProvider.class, method="countByExample")
    long countByExample(MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @DeleteProvider(type=MallGoodsSqlProvider.class, method="deleteByExample")
    int deleteByExample(MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @Delete({
        "delete from mall_goods",
        "where goods_key = #{goodsKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String goodsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @Insert({
        "insert into mall_goods (goods_key, app_key, ",
        "store_key, cat_key, ",
        "goods_code, `name`, ",
        "unit, weight, sort, ",
        "pic, pics, price, ",
        "cost_price, original_price, ",
        "details, service, ",
        "tags, stock, virtual_stock, ",
        "real_stock, sales_num, ",
        "virtual_num, use_attr, ",
        "create_time, update_time, ",
        "`state`, is_hot, is_distribute, ",
        "check_state, fail_reason, ",
        "begin_time, end_time, ",
        "check_time, subheading, ",
        "restriction, cate_list, ",
        "supplier_name, supplier_tel, ",
        "purchase_name, purchase_address, ",
        "`type`, vip_time, is_stage, ",
        "version, specific_template_key, ",
        "specifications)",
        "values (#{goodsKey,jdbcType=VARCHAR}, #{appKey,jdbcType=VARCHAR}, ",
        "#{storeKey,jdbcType=VARCHAR}, #{catKey,jdbcType=VARCHAR}, ",
        "#{goodsCode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, ",
        "#{unit,jdbcType=VARCHAR}, #{weight,jdbcType=DOUBLE}, #{sort,jdbcType=INTEGER}, ",
        "#{pic,jdbcType=VARCHAR}, #{pics,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, ",
        "#{costPrice,jdbcType=DECIMAL}, #{originalPrice,jdbcType=DECIMAL}, ",
        "#{details,jdbcType=VARCHAR}, #{service,jdbcType=VARCHAR}, ",
        "#{tags,jdbcType=VARCHAR}, #{stock,jdbcType=INTEGER}, #{virtualStock,jdbcType=INTEGER}, ",
        "#{realStock,jdbcType=INTEGER}, #{salesNum,jdbcType=INTEGER}, ",
        "#{virtualNum,jdbcType=INTEGER}, #{useAttr,jdbcType=INTEGER}, ",
        "#{createTime,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER}, ",
        "#{state,jdbcType=INTEGER}, #{isHot,jdbcType=INTEGER}, #{isDistribute,jdbcType=TINYINT}, ",
        "#{checkState,jdbcType=INTEGER}, #{failReason,jdbcType=VARCHAR}, ",
        "#{beginTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, ",
        "#{checkTime,jdbcType=INTEGER}, #{subheading,jdbcType=VARCHAR}, ",
        "#{restriction,jdbcType=INTEGER}, #{cateList,jdbcType=VARCHAR}, ",
        "#{supplierName,jdbcType=VARCHAR}, #{supplierTel,jdbcType=VARCHAR}, ",
        "#{purchaseName,jdbcType=VARCHAR}, #{purchaseAddress,jdbcType=VARCHAR}, ",
        "#{type,jdbcType=TINYINT}, #{vipTime,jdbcType=INTEGER}, #{isStage,jdbcType=TINYINT}, ",
        "#{version,jdbcType=INTEGER}, #{specificTemplateKey,jdbcType=VARCHAR}, ",
        "#{specifications,jdbcType=LONGVARCHAR})"
    })
    int insert(MallGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @InsertProvider(type=MallGoodsSqlProvider.class, method="insertSelective")
    int insertSelective(MallGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cat_key", property="catKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_code", property="goodsCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR),
        @Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE),
        @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="pics", property="pics", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="details", property="details", jdbcType=JdbcType.VARCHAR),
        @Result(column="service", property="service", jdbcType=JdbcType.VARCHAR),
        @Result(column="tags", property="tags", jdbcType=JdbcType.VARCHAR),
        @Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_stock", property="virtualStock", jdbcType=JdbcType.INTEGER),
        @Result(column="real_stock", property="realStock", jdbcType=JdbcType.INTEGER),
        @Result(column="sales_num", property="salesNum", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_num", property="virtualNum", jdbcType=JdbcType.INTEGER),
        @Result(column="use_attr", property="useAttr", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.INTEGER),
        @Result(column="is_hot", property="isHot", jdbcType=JdbcType.INTEGER),
        @Result(column="is_distribute", property="isDistribute", jdbcType=JdbcType.TINYINT),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.INTEGER),
        @Result(column="fail_reason", property="failReason", jdbcType=JdbcType.VARCHAR),
        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.INTEGER),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.INTEGER),
        @Result(column="check_time", property="checkTime", jdbcType=JdbcType.INTEGER),
        @Result(column="subheading", property="subheading", jdbcType=JdbcType.VARCHAR),
        @Result(column="restriction", property="restriction", jdbcType=JdbcType.INTEGER),
        @Result(column="cate_list", property="cateList", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_name", property="supplierName", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_tel", property="supplierTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_name", property="purchaseName", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_address", property="purchaseAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="vip_time", property="vipTime", jdbcType=JdbcType.INTEGER),
        @Result(column="is_stage", property="isStage", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="specific_template_key", property="specificTemplateKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifications", property="specifications", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallGoods> selectByExampleWithBLOBsWithRowbounds(MallGoodsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSqlProvider.class, method="selectByExampleWithBLOBs")
    @Results({
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cat_key", property="catKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_code", property="goodsCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR),
        @Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE),
        @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="pics", property="pics", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="details", property="details", jdbcType=JdbcType.VARCHAR),
        @Result(column="service", property="service", jdbcType=JdbcType.VARCHAR),
        @Result(column="tags", property="tags", jdbcType=JdbcType.VARCHAR),
        @Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_stock", property="virtualStock", jdbcType=JdbcType.INTEGER),
        @Result(column="real_stock", property="realStock", jdbcType=JdbcType.INTEGER),
        @Result(column="sales_num", property="salesNum", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_num", property="virtualNum", jdbcType=JdbcType.INTEGER),
        @Result(column="use_attr", property="useAttr", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.INTEGER),
        @Result(column="is_hot", property="isHot", jdbcType=JdbcType.INTEGER),
        @Result(column="is_distribute", property="isDistribute", jdbcType=JdbcType.TINYINT),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.INTEGER),
        @Result(column="fail_reason", property="failReason", jdbcType=JdbcType.VARCHAR),
        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.INTEGER),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.INTEGER),
        @Result(column="check_time", property="checkTime", jdbcType=JdbcType.INTEGER),
        @Result(column="subheading", property="subheading", jdbcType=JdbcType.VARCHAR),
        @Result(column="restriction", property="restriction", jdbcType=JdbcType.INTEGER),
        @Result(column="cate_list", property="cateList", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_name", property="supplierName", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_tel", property="supplierTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_name", property="purchaseName", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_address", property="purchaseAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="vip_time", property="vipTime", jdbcType=JdbcType.INTEGER),
        @Result(column="is_stage", property="isStage", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="specific_template_key", property="specificTemplateKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifications", property="specifications", jdbcType=JdbcType.LONGVARCHAR)
    })
    List<MallGoods> selectByExampleWithBLOBs(MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cat_key", property="catKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_code", property="goodsCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR),
        @Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE),
        @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="pics", property="pics", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="details", property="details", jdbcType=JdbcType.VARCHAR),
        @Result(column="service", property="service", jdbcType=JdbcType.VARCHAR),
        @Result(column="tags", property="tags", jdbcType=JdbcType.VARCHAR),
        @Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_stock", property="virtualStock", jdbcType=JdbcType.INTEGER),
        @Result(column="real_stock", property="realStock", jdbcType=JdbcType.INTEGER),
        @Result(column="sales_num", property="salesNum", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_num", property="virtualNum", jdbcType=JdbcType.INTEGER),
        @Result(column="use_attr", property="useAttr", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.INTEGER),
        @Result(column="is_hot", property="isHot", jdbcType=JdbcType.INTEGER),
        @Result(column="is_distribute", property="isDistribute", jdbcType=JdbcType.TINYINT),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.INTEGER),
        @Result(column="fail_reason", property="failReason", jdbcType=JdbcType.VARCHAR),
        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.INTEGER),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.INTEGER),
        @Result(column="check_time", property="checkTime", jdbcType=JdbcType.INTEGER),
        @Result(column="subheading", property="subheading", jdbcType=JdbcType.VARCHAR),
        @Result(column="restriction", property="restriction", jdbcType=JdbcType.INTEGER),
        @Result(column="cate_list", property="cateList", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_name", property="supplierName", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_tel", property="supplierTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_name", property="purchaseName", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_address", property="purchaseAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="vip_time", property="vipTime", jdbcType=JdbcType.INTEGER),
        @Result(column="is_stage", property="isStage", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="specific_template_key", property="specificTemplateKey", jdbcType=JdbcType.VARCHAR)
    })
    List<MallGoods> selectByExampleWithRowbounds(MallGoodsExample example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @SelectProvider(type=MallGoodsSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cat_key", property="catKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_code", property="goodsCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR),
        @Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE),
        @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="pics", property="pics", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="details", property="details", jdbcType=JdbcType.VARCHAR),
        @Result(column="service", property="service", jdbcType=JdbcType.VARCHAR),
        @Result(column="tags", property="tags", jdbcType=JdbcType.VARCHAR),
        @Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_stock", property="virtualStock", jdbcType=JdbcType.INTEGER),
        @Result(column="real_stock", property="realStock", jdbcType=JdbcType.INTEGER),
        @Result(column="sales_num", property="salesNum", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_num", property="virtualNum", jdbcType=JdbcType.INTEGER),
        @Result(column="use_attr", property="useAttr", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.INTEGER),
        @Result(column="is_hot", property="isHot", jdbcType=JdbcType.INTEGER),
        @Result(column="is_distribute", property="isDistribute", jdbcType=JdbcType.TINYINT),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.INTEGER),
        @Result(column="fail_reason", property="failReason", jdbcType=JdbcType.VARCHAR),
        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.INTEGER),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.INTEGER),
        @Result(column="check_time", property="checkTime", jdbcType=JdbcType.INTEGER),
        @Result(column="subheading", property="subheading", jdbcType=JdbcType.VARCHAR),
        @Result(column="restriction", property="restriction", jdbcType=JdbcType.INTEGER),
        @Result(column="cate_list", property="cateList", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_name", property="supplierName", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_tel", property="supplierTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_name", property="purchaseName", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_address", property="purchaseAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="vip_time", property="vipTime", jdbcType=JdbcType.INTEGER),
        @Result(column="is_stage", property="isStage", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="specific_template_key", property="specificTemplateKey", jdbcType=JdbcType.VARCHAR)
    })
    List<MallGoods> selectByExample(MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "goods_key, app_key, store_key, cat_key, goods_code, `name`, unit, weight, sort, ",
        "pic, pics, price, cost_price, original_price, details, service, tags, stock, ",
        "virtual_stock, real_stock, sales_num, virtual_num, use_attr, create_time, update_time, ",
        "`state`, is_hot, is_distribute, check_state, fail_reason, begin_time, end_time, ",
        "check_time, subheading, restriction, cate_list, supplier_name, supplier_tel, ",
        "purchase_name, purchase_address, `type`, vip_time, is_stage, version, specific_template_key, ",
        "specifications",
        "from mall_goods",
        "where goods_key = #{goodsKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="goods_key", property="goodsKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="app_key", property="appKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="store_key", property="storeKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="cat_key", property="catKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="goods_code", property="goodsCode", jdbcType=JdbcType.VARCHAR),
        @Result(column="name", property="name", jdbcType=JdbcType.VARCHAR),
        @Result(column="unit", property="unit", jdbcType=JdbcType.VARCHAR),
        @Result(column="weight", property="weight", jdbcType=JdbcType.DOUBLE),
        @Result(column="sort", property="sort", jdbcType=JdbcType.INTEGER),
        @Result(column="pic", property="pic", jdbcType=JdbcType.VARCHAR),
        @Result(column="pics", property="pics", jdbcType=JdbcType.VARCHAR),
        @Result(column="price", property="price", jdbcType=JdbcType.DECIMAL),
        @Result(column="cost_price", property="costPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="original_price", property="originalPrice", jdbcType=JdbcType.DECIMAL),
        @Result(column="details", property="details", jdbcType=JdbcType.VARCHAR),
        @Result(column="service", property="service", jdbcType=JdbcType.VARCHAR),
        @Result(column="tags", property="tags", jdbcType=JdbcType.VARCHAR),
        @Result(column="stock", property="stock", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_stock", property="virtualStock", jdbcType=JdbcType.INTEGER),
        @Result(column="real_stock", property="realStock", jdbcType=JdbcType.INTEGER),
        @Result(column="sales_num", property="salesNum", jdbcType=JdbcType.INTEGER),
        @Result(column="virtual_num", property="virtualNum", jdbcType=JdbcType.INTEGER),
        @Result(column="use_attr", property="useAttr", jdbcType=JdbcType.INTEGER),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.INTEGER),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.INTEGER),
        @Result(column="state", property="state", jdbcType=JdbcType.INTEGER),
        @Result(column="is_hot", property="isHot", jdbcType=JdbcType.INTEGER),
        @Result(column="is_distribute", property="isDistribute", jdbcType=JdbcType.TINYINT),
        @Result(column="check_state", property="checkState", jdbcType=JdbcType.INTEGER),
        @Result(column="fail_reason", property="failReason", jdbcType=JdbcType.VARCHAR),
        @Result(column="begin_time", property="beginTime", jdbcType=JdbcType.INTEGER),
        @Result(column="end_time", property="endTime", jdbcType=JdbcType.INTEGER),
        @Result(column="check_time", property="checkTime", jdbcType=JdbcType.INTEGER),
        @Result(column="subheading", property="subheading", jdbcType=JdbcType.VARCHAR),
        @Result(column="restriction", property="restriction", jdbcType=JdbcType.INTEGER),
        @Result(column="cate_list", property="cateList", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_name", property="supplierName", jdbcType=JdbcType.VARCHAR),
        @Result(column="supplier_tel", property="supplierTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_name", property="purchaseName", jdbcType=JdbcType.VARCHAR),
        @Result(column="purchase_address", property="purchaseAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="type", property="type", jdbcType=JdbcType.TINYINT),
        @Result(column="vip_time", property="vipTime", jdbcType=JdbcType.INTEGER),
        @Result(column="is_stage", property="isStage", jdbcType=JdbcType.TINYINT),
        @Result(column="version", property="version", jdbcType=JdbcType.INTEGER),
        @Result(column="specific_template_key", property="specificTemplateKey", jdbcType=JdbcType.VARCHAR),
        @Result(column="specifications", property="specifications", jdbcType=JdbcType.LONGVARCHAR)
    })
    MallGoods selectByPrimaryKey(String goodsKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSqlProvider.class, method="updateByExampleWithBLOBs")
    int updateByExampleWithBLOBs(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") MallGoods record, @Param("example") MallGoodsExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @UpdateProvider(type=MallGoodsSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(MallGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @Update({
        "update mall_goods",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "store_key = #{storeKey,jdbcType=VARCHAR},",
          "cat_key = #{catKey,jdbcType=VARCHAR},",
          "goods_code = #{goodsCode,jdbcType=VARCHAR},",
          "`name` = #{name,jdbcType=VARCHAR},",
          "unit = #{unit,jdbcType=VARCHAR},",
          "weight = #{weight,jdbcType=DOUBLE},",
          "sort = #{sort,jdbcType=INTEGER},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "pics = #{pics,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "cost_price = #{costPrice,jdbcType=DECIMAL},",
          "original_price = #{originalPrice,jdbcType=DECIMAL},",
          "details = #{details,jdbcType=VARCHAR},",
          "service = #{service,jdbcType=VARCHAR},",
          "tags = #{tags,jdbcType=VARCHAR},",
          "stock = #{stock,jdbcType=INTEGER},",
          "virtual_stock = #{virtualStock,jdbcType=INTEGER},",
          "real_stock = #{realStock,jdbcType=INTEGER},",
          "sales_num = #{salesNum,jdbcType=INTEGER},",
          "virtual_num = #{virtualNum,jdbcType=INTEGER},",
          "use_attr = #{useAttr,jdbcType=INTEGER},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "`state` = #{state,jdbcType=INTEGER},",
          "is_hot = #{isHot,jdbcType=INTEGER},",
          "is_distribute = #{isDistribute,jdbcType=TINYINT},",
          "check_state = #{checkState,jdbcType=INTEGER},",
          "fail_reason = #{failReason,jdbcType=VARCHAR},",
          "begin_time = #{beginTime,jdbcType=INTEGER},",
          "end_time = #{endTime,jdbcType=INTEGER},",
          "check_time = #{checkTime,jdbcType=INTEGER},",
          "subheading = #{subheading,jdbcType=VARCHAR},",
          "restriction = #{restriction,jdbcType=INTEGER},",
          "cate_list = #{cateList,jdbcType=VARCHAR},",
          "supplier_name = #{supplierName,jdbcType=VARCHAR},",
          "supplier_tel = #{supplierTel,jdbcType=VARCHAR},",
          "purchase_name = #{purchaseName,jdbcType=VARCHAR},",
          "purchase_address = #{purchaseAddress,jdbcType=VARCHAR},",
          "`type` = #{type,jdbcType=TINYINT},",
          "vip_time = #{vipTime,jdbcType=INTEGER},",
          "is_stage = #{isStage,jdbcType=TINYINT},",
          "version = #{version,jdbcType=INTEGER},",
          "specific_template_key = #{specificTemplateKey,jdbcType=VARCHAR},",
          "specifications = #{specifications,jdbcType=LONGVARCHAR}",
        "where goods_key = #{goodsKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKeyWithBLOBs(MallGoods record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table mall_goods
     *
     * @mbg.generated
     */
    @Update({
        "update mall_goods",
        "set app_key = #{appKey,jdbcType=VARCHAR},",
          "store_key = #{storeKey,jdbcType=VARCHAR},",
          "cat_key = #{catKey,jdbcType=VARCHAR},",
          "goods_code = #{goodsCode,jdbcType=VARCHAR},",
          "`name` = #{name,jdbcType=VARCHAR},",
          "unit = #{unit,jdbcType=VARCHAR},",
          "weight = #{weight,jdbcType=DOUBLE},",
          "sort = #{sort,jdbcType=INTEGER},",
          "pic = #{pic,jdbcType=VARCHAR},",
          "pics = #{pics,jdbcType=VARCHAR},",
          "price = #{price,jdbcType=DECIMAL},",
          "cost_price = #{costPrice,jdbcType=DECIMAL},",
          "original_price = #{originalPrice,jdbcType=DECIMAL},",
          "details = #{details,jdbcType=VARCHAR},",
          "service = #{service,jdbcType=VARCHAR},",
          "tags = #{tags,jdbcType=VARCHAR},",
          "stock = #{stock,jdbcType=INTEGER},",
          "virtual_stock = #{virtualStock,jdbcType=INTEGER},",
          "real_stock = #{realStock,jdbcType=INTEGER},",
          "sales_num = #{salesNum,jdbcType=INTEGER},",
          "virtual_num = #{virtualNum,jdbcType=INTEGER},",
          "use_attr = #{useAttr,jdbcType=INTEGER},",
          "create_time = #{createTime,jdbcType=INTEGER},",
          "update_time = #{updateTime,jdbcType=INTEGER},",
          "`state` = #{state,jdbcType=INTEGER},",
          "is_hot = #{isHot,jdbcType=INTEGER},",
          "is_distribute = #{isDistribute,jdbcType=TINYINT},",
          "check_state = #{checkState,jdbcType=INTEGER},",
          "fail_reason = #{failReason,jdbcType=VARCHAR},",
          "begin_time = #{beginTime,jdbcType=INTEGER},",
          "end_time = #{endTime,jdbcType=INTEGER},",
          "check_time = #{checkTime,jdbcType=INTEGER},",
          "subheading = #{subheading,jdbcType=VARCHAR},",
          "restriction = #{restriction,jdbcType=INTEGER},",
          "cate_list = #{cateList,jdbcType=VARCHAR},",
          "supplier_name = #{supplierName,jdbcType=VARCHAR},",
          "supplier_tel = #{supplierTel,jdbcType=VARCHAR},",
          "purchase_name = #{purchaseName,jdbcType=VARCHAR},",
          "purchase_address = #{purchaseAddress,jdbcType=VARCHAR},",
          "`type` = #{type,jdbcType=TINYINT},",
          "vip_time = #{vipTime,jdbcType=INTEGER},",
          "is_stage = #{isStage,jdbcType=TINYINT},",
          "version = #{version,jdbcType=INTEGER},",
          "specific_template_key = #{specificTemplateKey,jdbcType=VARCHAR}",
        "where goods_key = #{goodsKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(MallGoods record);
}